package com.xingbg.projectimpl.web.custom.controllers;

import com.xingbg.projectimpl.config.BeanOverride;
import com.xingbg.projectimpl.web.controllers.TestController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@BeanOverride
public class CustomExtendController extends TestController {

    @Override
    public String hello(@PathVariable String name) {
        return "override hello"+name;
    }

    @GetMapping("/hello2")
    public String hello2(String name) {
        return "custom hello 2";
    }
}
